/**
 * @projectName: api-backend
 * @package: com.wangzz.apiinterface.controller
 * @className: MessageControlleer
 * @author: wangzz
 * @description: TODO
 * @date: 2024/3/19 20:19
 * @version: 1.0
 */

package com.wangzz.apiinterface.controller;

import cn.hutool.core.util.RandomUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wangzz
 * @Description: 短信接口
 * @DateTime: 2024/3/19 20:19
 **/
@RestController
public class MessageController {

    @GetMapping("/message")
    public String getMessage(String phone) {
        return "手机号 "+phone + " 的验证码：" + RandomUtil.randomNumbers(4);
    }
}